# -*- coding: utf-8 -*-
import sys
sys.path.append("../../quidditas")

import quidditas

import components

q = quidditas.Quidditas()

definitions = {}

definitions["world-A"] = (components.WorldGridComponent((5,5)),
                          components.RouteDefinitionComponent(
                                                              (
                                                               ((1,5),(9,5)),
                                                               ),
                                                              ),
                          components.WaveDefinitionComponent(
                            (("soldier", 1, 2000, 1, 0), # 10 Soldiers every 500ms with HP multiplicator 1 at route 0
                            )),
                         )

definitions["route"] = (components.RouteComponent(),)

definitions["spawn-point"] = (components.PositionComponent(0),
                              components.SpawnComponent(),
                             )

definitions["soldier"] = (components.HealthComponent(20),
                          components.PositionComponent(),
                          components.VelocityComponent(40),
                          components.PathFinderComponent("ground"),
                          components.RenderingComponent("soldier"),
                         )

#TODO: Components/Entities as events for other systems?